-- GENERATED SPELL FOR [Riverpaw Shaman] --


function spell0_1065(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1065', 3000, 1)
end

function spell1_1065(pUnit, Event) --@Rejuvenation,n/a--
pUnit:FullCastSpellOnTarget(774,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1065', 12000, 1)
end

function Sorts_1065(pUnit, Event)
local choix_sorts_1065 = math.random(0, 1)
if choix_sorts_1065 == 0 then
pUnit:RegisterEvent('spell0_1065', 1, 1)
end
if choix_sorts_1065 == 1 then
pUnit:RegisterEvent('spell1_1065', 1, 1)
end
end

function mob1065_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1065', math.random(1500, 3000), 1)
end

function mob1065_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1065_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1065_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1065, 1, 'mob1065_Action')
RegisterUnitEvent(1065, 2, 'mob1065_Leave')
RegisterUnitEvent(1065, 3, 'mob1065_Kill')
RegisterUnitEvent(1065, 4, 'mob1065_Die')
